package com.qf.huigou.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @version 1.8.0_131
 * @Author WangYiZhu
 * @Email 2641956765@qq.com   这个封装类对应的是basicinfo表，主要是用来评估步骤的map集合的键
 * @Time 2022/12/08 18:41
 */
@Data
public class ParProperty implements Serializable,Comparable<ParProperty> {
    private  Integer parPropertyId;
    private String parPropertyName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ParProperty that = (ParProperty) o;
        return Objects.equals(parPropertyId, that.parPropertyId) && Objects.equals(parPropertyName, that.parPropertyName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(parPropertyId, parPropertyName);
    }

    @Override
    public int compareTo(ParProperty o) {
        return this.getParPropertyId()-o.getParPropertyId();
    }
}
